package com.kys.application;

import com.kys.application.dubboConsumer.TestConsumer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
@ImportResource("classpath:spring.xml")
public class DubboConsumerApplication implements CommandLineRunner {
    @Autowired
    TestConsumer testConsumer;
    public static void main(String[] args) {
        SpringApplication.run(DubboConsumerApplication.class);
    }

    @Override
    public void run(String... args) throws Exception {
        testConsumer.userTest();
    }
}
